package com.yf.provider;

import android.app.Activity;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;


public class MainActivity extends Activity {

    private SQLiteDatabase db;

	@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        MyOpenHelper openHelper = new MyOpenHelper(this);
        db = openHelper.getReadableDatabase();
    }

    @Override
    protected void onDestroy() {
    	super.onDestroy();
    	db.close();
    }
}
